]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
appDisplay: Don't add row and column spacing to the pagePadding
authorJonas Dreßler <verdre@v0yd.nl>
Tue, 16 Jan 2024 20:47:55 +0000 (21:47 +0100)
committerMarge Bot <marge-bot@gnome.org>
Tue, 14 May 2024 18:24:07 +0000 (18:24 +0000)
We use the pagePadding to adjust for the large indicators that we add on the
left and right of the appGrid.

While the original padding needs to be applied to the padding for the
indicators (as it was in super.vfunc_style_changed already), there's no
reason to add an extra row and column spacing to the pagePadding on all
sides, so remove that.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3278>

js/ui/appDisplay.js

index aca6002eb2d74b6970bcee8865c1d42d99739da3..f107c44e91bc76672a08afa5289f9e3bee17622f 100644 (file)
@@ -173,13 +173,8 @@ export const AppGrid = GObject.registerClass({
 
     _updatePadding() {
         const node = this.get_theme_node();
-        const {rowSpacing, columnSpacing} = this.layoutManager;
 
         const padding = this._indicatorsPadding.copy();
-        padding.left += rowSpacing;
-        padding.right += rowSpacing;
-        padding.top += columnSpacing;
-        padding.bottom += columnSpacing;
         ['top', 'right', 'bottom', 'left'].forEach(side => {
             padding[side] += node.get_length(`page-padding-${side}`);
         });